<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/3/6
 * Time: 15:40
 */

class A{
    public $val;
    protected $proVal = 111;
    public function __construct()
    {

    }

    public function g()
    {
        $kkk = 23;
       // echo 111;
        return $kkk;
        
    }
}

class C extends A{

    public function g(){
        parent::g();
        $kkk = 56;
        echo $this->proVal;
        return $kkk;
    }

    public function __destruct()
    {
        
    }

}
$c = new C();
echo $c->g();


